package com.projetosi.web.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.projetosi.web.client.PersistenceService;
import com.projetosi.web.server.sistema.objetos.Sistema;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class PersistenceServiceImpl extends RemoteServiceServlet implements
		PersistenceService {

	@Override
	public String teste() {
		return "Teste";
	}

	@Override
	public void addUsuario(String login, String nome, String senha, String endereco) {
		try {
			Sistema.getInstance().criarUsuario(login, senha, nome, endereco);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

	
}
